//
//  TopCollectionViewCell.m
//  14_Work
//
//  Created by Apple on 16/8/2.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "TopCollectionViewCell.h"

@interface TopCollectionViewCell ()
@property (nonatomic, strong) UIImageView *picImageView;
@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UILabel *episodeLabel;
@property (nonatomic, strong) UILabel *writerLabel;

@end

@implementation TopCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.picImageView = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, self.bounds.size.width / 2 - 10, self.bounds.size.height - 10)];
        self.picImageView.backgroundColor = [UIColor cyanColor];
        [self addSubview:self.picImageView];
        
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.bounds.size.width / 2 + 5, 10, self.bounds.size.width / 2 - 10, 20)];
        self.titleLabel.backgroundColor = [UIColor greenColor];
        [self addSubview:self.titleLabel];
        
        self.episodeLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.bounds.size.width / 2 + 5, 35, self.bounds.size.width / 2 - 10, 20)];
        self.episodeLabel.backgroundColor = [UIColor grayColor];
        [self addSubview:self.episodeLabel];
        
        self.writerLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.bounds.size.width / 2 + 5, 60, self.bounds.size.width / 2 - 10, 20)];
        self.writerLabel.backgroundColor = [UIColor yellowColor];
        [self addSubview:self.writerLabel];
        
    }
    return self;
}




@end
